window: Don't focus invisible widgets
authorMatthias Clasen <mclasen@redhat.com>
Mon, 17 Oct 2022 19:10:51 +0000 (15:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 18 Oct 2022 10:42:17 +0000 (06:42 -0400)
commitf5063c14357b2206c895e297ce855ac8363322e5
tree07864ee7bf2cc68aef73464759114de5a36b7ded
parent100605ef0c7997f378cb889a1290cb6ea23a051b
window: Don't focus invisible widgets

Only clear a queued move_focus if the widget
we are focusing is actually visible.

This was happening in some cases when popovers
are dismissed by clicking outside, and it was
causing us to miss proper focus updates that
were already queued.
gtk/gtkwindow.c